package com.epam.Xml;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "Vouchers")
public class TouristVouchers<T> {

	private List<T> voucher;

	public TouristVouchers() {
		voucher = new ArrayList<T>();
	}

	public List<T> getVouchers() {
		return voucher;
	}

	@XmlElement(name = "voucher")
	public void setVouchers(List<T> voucher) {
		this.voucher = voucher;
	}

	public void setVoucher(T voucher) {
		this.voucher.add(voucher);
	}

}